<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script>
    export default {
        name: "App",
        created() {
            if (window.location.href.indexOf("token") === -1) {
                if (!window.localStorage.getItem("token")) {
                    this.$gToken();
                }
            } else {
                this.$gToken();
            }
        },
    };
</script>
<style lang="scss" scoped>
    #app{
        color: #fff;
        width: 100%;
        height:100%;
    }

</style>


